<?php
/**
 * Created by PhpStorm.
 * User: VENKI
 * Date: 2021-03-08
 * Time: 15:00
 */

return [
    //公共
    'generals'   => [
        'page' => '页码数填写有误',
        'size' => '每页记录数填写有误',
        'id'   => '用户id不正确',
    ],
    //role
    'role'       => [
        'id-required'        => '角色ID必须填写',
        'id-integer'         => '角色ID必须为整型',
        'id-min'             => '角色ID最小值为1',
        'name-required'      => '角色名称必须填写',
        'name-max'           => '角色名称长度不超过20',
        'name-unique'        => '角色名称不可重复',
        'menus-array'        => '菜单数据格式必须是数组',
        'permissions-array'  => '接口数据格式必须是数组',
        'is_enable-required' => '是否显示必须填写',
        'is_enable-boolean'  => '是否显示只能为布尔值',
    ],
    //menu
    'menu'       => [
        'id-required'            => '菜单ID必须填写',
        'id-integer'             => '菜单ID必须为整型',
        'id-min'                 => '菜单ID最小值为1',
        'id-exists'              => '菜单ID不存在',
        'parent_id-required'     => '上级菜单有误，默认请填写0',
        'parent_id-integer'      => '上级菜单必须为整型',
        'name-present'           => '菜单标识有误',
        'name-max'               => '菜单长度不超过50',
        'title-required'         => '菜单标题必须填写',
        'title-max'              => '菜单标题长度不超过20',
        'title-unique'           => '菜单标题不可重复',
        'icon-present'           => '菜单图标填写有误',
        'icon-max'               => '菜单图标长度不超过50',
        'path-present'           => '路由填写有误',
        'path-max'               => '路由长度不超过50',
        'component_path-present' => '文件路径有误',
        'component_path-max'     => '文件路径长度不超过50',
        'is_enable-required'     => '请选择是否显示',
        'is_enable-boolean'      => '是否显示进行布尔值',
    ],
    //permission
    'permission' => [
        'id-required'        => '接口ID必须填写',
        'id-integer'         => '接口ID必须为整型',
        'id-min'             => '接口ID最小值为1',
        'parent_id-required' => '父级菜单权限必须填写，默认请填0',
        'parent_id-integer'  => '父级菜单权限必须为整型',
        'name-required'      => '接口名字必须填写',
        'name-max'           => '接口名字长度不超过50',
        'name-unique'        => '接口名字不可重复',
        'title-required'     => '权限菜单标题必须填写',
        'title-max'          => '权限菜单标题长度不超过20',
        'is_enable-required' => '接口是否启用必须填写',
        'is_enable-boolean'  => '接口是否启用只能是布尔值',
    ],
    //admin
    'admin'      => [
        'id'                  => '管理员ID有误',
        'name-required'       => '用户名称必须填写',
        'name-max'            => '用户名称长度不可超过20',
        'nickname'            => '昵称填写有误',
        'account-required'    => '用户账号必须填写',
        'account-alpha_num'   => '用户账号只能由字母或者数字组成',
        'account-max'         => '用户账号长度不可超过20位',
        'account-min'         => '用户账号长度不少于6位',
        'account-unique'      => '用户账号不能重复',
        'password-required'   => '用户密码必须填写',
        'password-alpha_dash' => '用户密码只能由字母数字中下划线组成',
        'password-min'        => '用户密码长度不少于6位',
        'role_id-required'    => '角色必选填写',
        'role_id-integer'     => '角色ID必须是整型',
        'email-email'         => '邮箱填写有误',
        'is_enable-required'  => '必须选择是否显示',
        'is_enable-boolean'   => '是否显示只能是布尔值',
    ],
];
